package com.freejava.test_roles.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @GetMapping("/dba/hi")
    public String dba() {
        return "Hi, dba page";
    }

    @GetMapping("/user/hi")
    public String user() {
        return "Hi, user";
    }

    @GetMapping("/admin/hi")
    public String admin() {
        return "Hi, admin";
    }

    @GetMapping("/testHi")
    public String testHi() {
        return "Hi, just for test!";
    }

}
